package com.an.vhr.service;

import com.an.vhr.bean.MailSendLog;
import com.an.vhr.mapper.MailSendLogMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * @Author: an1089
 **/
@Service
public class MailSendLogService {
    @Resource
    MailSendLogMapper mailSendLogMapper;
    public void updateMailSendLogStatus(String msgId, Integer status) {
        mailSendLogMapper.updateMailSendLogStatus(msgId, status);
    }

    public void insert(MailSendLog mailSendLog) {
        mailSendLogMapper.insert(mailSendLog);
    }

    public List<MailSendLog> getMailSendLogsByStatus() {
        return mailSendLogMapper.getMailSendLogsByStatus();
    }

    public void updateCount(String msgId, Date date) {
        mailSendLogMapper.updateCount(msgId, date);
    }
}
